core: Disable Gvfs for binaries
authorColin Walters <walters@verbum.org>
Fri, 24 Feb 2012 22:24:50 +0000 (17:24 -0500)
committerColin Walters <walters@verbum.org>
Fri, 24 Feb 2012 22:24:50 +0000 (17:24 -0500)
Otherwise
1) Lots of unnecessary shit happens and I like my straces to be clean
2) There is no dbus session bus for system daemons or when we're run
   in a root context

src/ostree/ot-main.c

index 1492e8e2517f0e791f7b6acff10848fff609f7d8..f328faf27e951075c9380c21c80ec7259af48736 100644 (file)
@@ -95,6 +95,9 @@ ostree_main (int    argc,
   GFile *repo_file = NULL;
   int arg_off;
 
+  /* avoid gvfs (http://bugzilla.gnome.org/show_bug.cgi?id=526454) */
+  g_setenv ("GIO_USE_VFS", "local", TRUE);
+
   g_type_init ();
 
   g_set_prgname (argv[0]);